Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Surefire runOrder random now outputs the seed it used to generate the… #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

winglam
Copy link

@winglam winglam commented Jul 28, 2020

… random test order and it can take in a seed as argument to recreate a random test order.

@winglam
Copy link
Author

winglam commented Jul 28, 2020

To test the feature, run the following on any project of your choice.

mvn test -Dsurefire.runOrder=random -Dsurefire.seed=X

Setting the seed to the same value should run the tests consistently in the same test class order, while a different value may result in a different order.

@winglam winglam force-pushed the random_seed branch 4 times, most recently from 3bc2298 to a669c19 Compare August 4, 2020 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant